import { defineStore } from "pinia";
interface GlobalState {
	globalTheme: 'darkTheme' | 'lightTheme';
	userInfo: any;
	isCollapsed: boolean;
}
export const useGlobalStore = defineStore('global', {
	state: (): GlobalState => ({
		globalTheme: 'lightTheme',
		userInfo: {},
		isCollapsed: false
	}),
	getters: {
		getToken(state: GlobalState): GlobalState {
			let token = state.userInfo['ReToken'] || '';
			return token
		}
	}
})